import React from 'react';
import useGenCellStyle from './hooks/useGenCellStyle';
import getCssPrefix from '../../lib/getCssPrefix';
const { cssPrefix } = getCssPrefix();
function Cell(props) {
    const { styles, rowSpan, rowHeight,align } = props;
    const cellStyle = useGenCellStyle(styles, rowHeight, rowSpan)    
    return <div className={`${cssPrefix}-row-cell ${align}`} style={cellStyle} >{props.children}</div>
}
export default Cell;